package com.le.tester.dao;

import com.le.tester.entity.SecKillOrder;
import com.le.tester.entity.SecKillOrderExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SecKillOrderMapper {
    long countByExample(SecKillOrderExample example);

    int deleteByExample(SecKillOrderExample example);

    int deleteByPrimaryKey(Long id);

    int insert(SecKillOrder record);

    int insertSelective(SecKillOrder record);

    List<SecKillOrder> selectByExample(SecKillOrderExample example);

    SecKillOrder selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") SecKillOrder record, @Param("example") SecKillOrderExample example);

    int updateByExample(@Param("record") SecKillOrder record, @Param("example") SecKillOrderExample example);

    int updateByPrimaryKeySelective(SecKillOrder record);

    int updateByPrimaryKey(SecKillOrder record);

    //判断是不是已经秒杀过
    SecKillOrder selectSecKillOrderByUserIdGoodsId(@Param("userId") long userId, @Param("goodsId") Long goodsId);
}